import request from '../request'

// 仪表盘相关接口
const dashboardApi = {
  // 获取统计数据
  getStats: () => request.get('/dashboard/stats'),
  
  // 获取图表数据
  getChartData: (type, params) => request.get(`/dashboard/chart/${type}`, { params }),
  
  // 获取最近活动
  getRecentActivities: (params) => request.get('/dashboard/activities', { params })
}

export default dashboardApi